
const path = require('path')
const resolve = dir => path.join(__dirname, dir)

module.exports = {
  outputDir: 'dist',
  publicPath: process.env.NODE_ENV === 'production' ? '/vant-demo/' : '/',
  runtimeCompiler: true,
  chainWebpack: config => {
    config.resolve.alias
    .set('@', resolve('src'))
    .set('_c', resolve('src/components'))
    .set('_v', resolve('src/view'))
    .set('_p', resolve('src/pages'));
  }
};
